package com.scarymovieapp.dao;

import java.util.ArrayList;
import java.util.List;

import com.scarymovieapp.dto.Movie;
import com.scarymovieapp.dto.MovieSearch;

public class IscaryMovieDAOStub implements IscaryMovieDAO {

	@Override
	public List<Movie> fetchMovies(MovieSearch movieSearch) {
		
		// Create an ArrayList that will hold all the Movies
		List<Movie> allMovies = new ArrayList<Movie>();
		
		
		//make a movie object
		Movie darkSkies = new Movie();
		
		darkSkies.setName("Dark Skies");
		darkSkies.setGenre("Aliens");
		darkSkies.setMovieStar("Keri Russell");
		darkSkies.setFilmLocation("Los Angeles");
		darkSkies.setId(1);
		
		
		//make a movie object
        Movie womanInBlack = new Movie();
		
        womanInBlack.setName("Woman in Black");
        womanInBlack.setGenre("Suspense");
        womanInBlack.setMovieStar("Daniel Radcliffe");
        womanInBlack.setFilmLocation("Peterborough, England");
        womanInBlack.setId(2);
		
		// Add movies to array list of allMovies
		allMovies.add(darkSkies);
		allMovies.add(womanInBlack);
		
		
		return allMovies;
	}

}
